package com.cmc.cloud.cmclink.doc.vo.voyagebsavo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 周贤
 * @date 2025/6/11
 * 普通列表查询参数
 */
@Schema(description = "管理后台 - bsa （base space Allocation） 从历史数据复制 参数")
@Data
@EqualsAndHashCode()
@ToString(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
public class VoyageBsaBaseQueryVo {

    @Schema(description = "模板标记", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{VoyageBsaBaseQueryVo.isTemplate.NotNull}")
    private Boolean isTemplate;

    @Schema(description = "进出口类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotBlank(message = "{VoyageBsaBaseQueryVo.exImType.NotBlank}")
    @Length(max = 10, message = "{VoyageBsaBaseQueryVo.exImType.Length}")
    private String exImType;

    @Schema(description = "航线代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @Length(max = 50, message = "{VoyageBsaBaseQueryVo.laneCode.NotBlank}")
    @NotBlank(message = "{VoyageBsaBaseQueryVo.laneCode.Length}")
    private String laneCode;

    @Schema(description = "船舶代码")
    @Length(max = 50, message = "{VoyageBsaBaseQueryVo.vesselCode.Length}")
    private String vesselCode;

    @Schema(description = "航次")
    @Length(max = 50, message = "{VoyageBsaBaseQueryVo.voyage.Length}")
    private String voyage;

    @Schema(description = "港口代码")
    @Length(max = 50, message = "{VoyageBsaBaseQueryVo.polCodes.Length}")
    private String polCodes;
}
